import { connect } from 'dva';
import styles from './index.less';
import logo from 'images/logo.png';
import { InputItem, Button, } from 'antd-mobile';
import router from 'umi/router';


function App({ login, dispatch }) {
    return (
        <div className={styles.normal}>
            <div className={styles.imageContent}>
                <img src={logo} alt='' className={styles.images} />
            </div>
            <div className={styles.textInput}>
                <InputItem placeholder='请输入账号'></InputItem>
                <InputItem type='password' placeholder='请输入密码'></InputItem>
                <div className={styles.gap}></div>
            </div>
            <div className={styles.buttonContent}>
                <Button className={styles.button} onClick={
                    () => router.push('mainpage')
                }>登录</Button>
            </div>
            <div className={styles.findPsd} onClick={
                () => router.push('retrievePwd')
            }>
                快速找回密码
            </div>
        </div>

    );
}
export default connect(({ login }) => ({ login }))(App);
